package cn.xianshu.basic.query;

import lombok.Data;

@Data
public class BasicQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 5;
    private String keyword;

    public void setKeyword(String keyword) {
        this.keyword = keyword.trim();
    }

    // 获取当前开始起始数据
    public Integer getBegin(){
        return (this.currentPage - 1) * this.pageSize;
    }

}
